package com.ny.service.impl;

import com.ny.dao.impl.OrderDaoImpl;
import com.ny.entity.Order;
import com.ny.service.OrderService;

import java.sql.SQLException;
import java.util.List;

public class OrderServiceImpl implements OrderService {
    private OrderDaoImpl  orderDao = new OrderDaoImpl();
    public OrderServiceImpl() throws SQLException, ClassNotFoundException{
    }
    @Override
    public int addOrder(Order order) throws SQLException,ClassNotFoundException{
        return orderDao.addOrder(order);
    }

    @Override
    public int deleteOrder(int orderId1) {
        return 0;
    }

    @Override
    public List<Order> findAllOrder() {
        return null;
    }

    @Override
    public int updateOrder(Order order) {
        return 0;
    }
}
